package csu.web.credit_bank.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

@TableName(value ="articles")
@Data
public class Articles {

    // 文章ID，使用UUID
    @TableId
    private String id;
    private String authorId;
    private String title;
    private String content;

    // 标签，多个标签用逗号分隔
    private String tags;
    private Date createTime;
    private Date updateTime;
    private Integer likes;

    @TableField(exist = false)
    private Integer commentCount;
    @TableField(exist = false)
    private Boolean liked;

}